package com.ssn.iterator;

public class Client {
    public static void main(String[] args) {
        Aggregate<String> arr = new MyAggregate<>();
        arr.addItem("item1");
        arr.addItem("item2");
        arr.addItem("item3");
        arr.addItem("item4");
        arr.addItem("item5"); 
        arr.addItem("item6");
        arr.getAggregate();
        Iterator iterator = arr.iterator();
        iterator.forwardTravel();
        System.out.println();
        iterator.reverseTravel();
    }
}
